import http from "@/config/request.ts";

export function getQiniuConfig() {
  return http.sendRequest({
    url: "/qiniu/config",
    type: "GET",
  });
}

export const sign = (data: any) => {
  return http.sendRequest({
    url: "/wx/applet/login",
    data,
    type: "GET",
  });
};
export const updateUser = (data: any) => {
  return http.sendRequest({
    url: "/wx/applet/syncUserInfo",
    data,
    type: "POST",
  });
};

// 获取小程序码
export const getCode = (data: any) => {
  return http.sendRequest({
    url: "/common/getCode",
    data,
    type: "POST",
  });
};
export const chSign = (data: any) => {
  return http.sendRequest({
    url: "/jobUser/chSign",
    data,
    type: "POST",
  });
};
